
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
	<tr>
		<td>
			<span style="float: left;">后台管理中心&nbsp;&raquo;&nbsp;产品管理</span>
			<span style="float: right;">
				<a href="javascript:history.go(-1);">&lt;- 返回</a>
			</span>
		</td>
	</tr>
</table>

<form action="./?controller=account&action=accountdoadd" method="post">
<input type="hidden" name="id" value="<?php echo $this->account['id'];?>" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
	<tr class="header">
		<td colspan="11">账号信息(标*号的必填)</td>
	</tr>
	<tr>
		<td class="altbg1">名称 *</td>
		<td class="altbg2">
			<input class="input" name="name" value="<?php echo $this->account['name'];?>" />
		</td>
	</tr>
	<tr>
		<td class="altbg1">所属产品 *</td>
		<td class="altbg2">
			<select name="pid">
<?php 
foreach ($this->product as $v){
    $selected = $v['id'] == $this->account['pid'] ? 'selected' : '';
    echo <<<EOF
                <option value="{$v['id']}" {$selected}>{$v['name']}</option>
EOF;
}
?>
			</select>
		</td>
	</tr>
	<tr>
		<td class="altbg1">用户名 *</td>
		<td class="altbg2">
			<input class="input" name="username" value="<?php echo $this->account['username'];?>" />
		</td>
	</tr>
	<tr>
		<td class="altbg1">初始密码 *</td>
		<td class="altbg2">
			<input class="input" name="password" value="<?php echo $this->account['password'];?>" />
		</td>
	</tr>
	<tr>
		<td class="altbg1">同时使用人数 *</td>
		<td class="altbg2">
			<input class="input" name="nums" value="<?php echo $this->account['nums'];?>" />
		</td>
	</tr>
	<tr>
		<td class="altbg1" colspan=2 align="center">
			<input class="button" type="submit" value="确定" />
			&nbsp;
			<input class="button" type="reset" value="重置" />
		</td>
	</tr>
</table>
</form>
